package com.crazyread.dao;

import com.crazyread.model.domain.BookType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BooksTypeMapper {
    public List<BookType> selectByType();
    //通过id查询书籍分类名
    @Select("select name_type from book_type where id= #{id}")
    public String selectBookTypename(Integer id);
}
